package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Mobile   string `gorm:"type:varchar(11);not null"`
	Password string `gorm:"type:varchar(32);not null"`
}

type Book struct {
	gorm.Model
	Title  string `gorm:"type:varchar(30);not null"`
	Image  string `gorm:"type:varchar(500);not null"`
	Text   string `gorm:"type:varchar(30);not null"`
	UserId int    `gorm:"type:int;not null"`
}
